package com.ruoyi.mark.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 用户列表对象 cf_user
 * 
 * @author shenshen
 * @date 2024-06-04
 */
public class CfUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键,自增 */
    private Long id;

    /** 用户名【唯一】 */
    @Excel(name = "用户名【唯一】")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机 */
    @Excel(name = "手机")
    private String phone;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long deleted;

    /** 余额 */
    @Excel(name = "余额")
    private Long money;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String paymentpassword;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registertime;

    /** 查询开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /** 查询结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private List<CfUserImage> userImageList;

    public List<CfUserImage> getUserImageList() {
        return userImageList;
    }

    public void setUserImageList(List<CfUserImage> userImageList) {
        this.userImageList = userImageList;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }
    public void setMoney(Long money) 
    {
        this.money = money;
    }

    public Long getMoney() 
    {
        return money;
    }
    public void setPaymentpassword(String paymentpassword) 
    {
        this.paymentpassword = paymentpassword;
    }

    public String getPaymentpassword() 
    {
        return paymentpassword;
    }
    public void setRegistertime(Date registertime) 
    {
        this.registertime = registertime;
    }

    public Date getRegistertime() 
    {
        return registertime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("realName", getRealName())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("deleted", getDeleted())
            .append("money", getMoney())
            .append("paymentpassword", getPaymentpassword())
            .append("registertime", getRegistertime())
                .append("userImageList",getUserImageList())
            .toString();
    }
}
